/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: model.proto

package com.lyh.proto.entity;

public final class ModelOutter {
    private ModelOutter() {
    }

    public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {
    }

    public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
        registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry);
    }

    public interface EntryOrBuilder extends
    // @@protoc_insertion_point(interface_extends:model.Entry)
                                   com.google.protobuf.MessageOrBuilder {

        /**
         * <code>int64 id = 1;</code>
         */
        long getId();

        /**
         * <code>.model.Meta meta = 3;</code>
         */
        boolean hasMeta();

        /**
         * <code>.model.Meta meta = 3;</code>
         */
        com.lyh.proto.entity.ModelOutter.Meta getMeta();

        /**
         * <code>.model.Meta meta = 3;</code>
         */
        com.lyh.proto.entity.ModelOutter.MetaOrBuilder getMetaOrBuilder();
    }

    /**
     * Protobuf type {@code model.Entry}
     */
    public static final class Entry extends com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:model.Entry)
                                                                                  EntryOrBuilder {
        private static final long serialVersionUID = 0L;

        // Use Entry.newBuilder() to construct.
        private Entry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private Entry() {
            id_ = 0L;
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private Entry(com.google.protobuf.CodedInputStream input,
                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                  throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            int mutable_bitField0_ = 0;
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
                .newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch (tag) {
                        case 0:
                            done = true;
                            break;
                        case 8: {

                            id_ = input.readInt64();
                            break;
                        }
                        case 26: {
                            com.lyh.proto.entity.ModelOutter.Meta.Builder subBuilder = null;
                            if (meta_ != null) {
                                subBuilder = meta_.toBuilder();
                            }
                            meta_ = input
                                .readMessage(com.lyh.proto.entity.ModelOutter.Meta.parser(), extensionRegistry);
                            if (subBuilder != null) {
                                subBuilder.mergeFrom(meta_);
                                meta_ = subBuilder.buildPartial();
                            }

                            break;
                        }
                        default: {
                            if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
                                done = true;
                            }
                            break;
                        }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.lyh.proto.entity.ModelOutter.internal_static_model_Entry_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return com.lyh.proto.entity.ModelOutter.internal_static_model_Entry_fieldAccessorTable
                .ensureFieldAccessorsInitialized(com.lyh.proto.entity.ModelOutter.Entry.class,
                    com.lyh.proto.entity.ModelOutter.Entry.Builder.class);
        }

        public static final int ID_FIELD_NUMBER = 1;
        private long            id_;

        /**
         * <code>int64 id = 1;</code>
         */
        public long getId() {
            return id_;
        }

        public static final int                       META_FIELD_NUMBER = 3;
        private com.lyh.proto.entity.ModelOutter.Meta meta_;

        /**
         * <code>.model.Meta meta = 3;</code>
         */
        public boolean hasMeta() {
            return meta_ != null;
        }

        /**
         * <code>.model.Meta meta = 3;</code>
         */
        public com.lyh.proto.entity.ModelOutter.Meta getMeta() {
            return meta_ == null ? com.lyh.proto.entity.ModelOutter.Meta.getDefaultInstance() : meta_;
        }

        /**
         * <code>.model.Meta meta = 3;</code>
         */
        public com.lyh.proto.entity.ModelOutter.MetaOrBuilder getMetaOrBuilder() {
            return getMeta();
        }

        private byte memoizedIsInitialized = -1;

        @java.lang.Override
        public final boolean isInitialized() {
            byte isInitialized = memoizedIsInitialized;
            if (isInitialized == 1)
                return true;
            if (isInitialized == 0)
                return false;

            memoizedIsInitialized = 1;
            return true;
        }

        @java.lang.Override
        public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            if (id_ != 0L) {
                output.writeInt64(1, id_);
            }
            if (meta_ != null) {
                output.writeMessage(3, getMeta());
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;

            size = 0;
            if (id_ != 0L) {
                size += com.google.protobuf.CodedOutputStream.computeInt64Size(1, id_);
            }
            if (meta_ != null) {
                size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMeta());
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof com.lyh.proto.entity.ModelOutter.Entry)) {
                return super.equals(obj);
            }
            com.lyh.proto.entity.ModelOutter.Entry other = (com.lyh.proto.entity.ModelOutter.Entry) obj;

            boolean result = true;
            result = result && (getId() == other.getId());
            result = result && (hasMeta() == other.hasMeta());
            if (hasMeta()) {
                result = result && getMeta().equals(other.getMeta());
            }
            result = result && unknownFields.equals(other.unknownFields);
            return result;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            hash = (37 * hash) + ID_FIELD_NUMBER;
            hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getId());
            if (hasMeta()) {
                hash = (37 * hash) + META_FIELD_NUMBER;
                hash = (53 * hash) + getMeta().hashCode();
            }
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(java.nio.ByteBuffer data)
                                                                                                throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(java.nio.ByteBuffer data,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                   throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(com.google.protobuf.ByteString data)
                                                                                                           throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(com.google.protobuf.ByteString data,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                   throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(byte[] data)
                                                                                   throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(byte[] data,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                   throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(java.io.InputStream input)
                                                                                                 throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(java.io.InputStream input,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                   throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseDelimitedFrom(java.io.InputStream input)
                                                                                                          throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseDelimitedFrom(java.io.InputStream input,
                                                                                com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                            throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input,
                extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(com.google.protobuf.CodedInputStream input)
                                                                                                                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.lyh.proto.entity.ModelOutter.Entry parseFrom(com.google.protobuf.CodedInputStream input,
                                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                   throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(com.lyh.proto.entity.ModelOutter.Entry prototype) {
            return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
        }

        @java.lang.Override
        public Builder toBuilder() {
            return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
        }

        @java.lang.Override
        protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code model.Entry}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
                                                                                                         implements
                                                                                                         // @@protoc_insertion_point(builder_implements:model.Entry)
                                                                                                         com.lyh.proto.entity.ModelOutter.EntryOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return com.lyh.proto.entity.ModelOutter.internal_static_model_Entry_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return com.lyh.proto.entity.ModelOutter.internal_static_model_Entry_fieldAccessorTable
                    .ensureFieldAccessorsInitialized(com.lyh.proto.entity.ModelOutter.Entry.class,
                        com.lyh.proto.entity.ModelOutter.Entry.Builder.class);
            }

            // Construct using com.lyh.proto.entity.ModelOutter.Entry.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                id_ = 0L;

                if (metaBuilder_ == null) {
                    meta_ = null;
                } else {
                    meta_ = null;
                    metaBuilder_ = null;
                }
                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return com.lyh.proto.entity.ModelOutter.internal_static_model_Entry_descriptor;
            }

            @java.lang.Override
            public com.lyh.proto.entity.ModelOutter.Entry getDefaultInstanceForType() {
                return com.lyh.proto.entity.ModelOutter.Entry.getDefaultInstance();
            }

            @java.lang.Override
            public com.lyh.proto.entity.ModelOutter.Entry build() {
                com.lyh.proto.entity.ModelOutter.Entry result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public com.lyh.proto.entity.ModelOutter.Entry buildPartial() {
                com.lyh.proto.entity.ModelOutter.Entry result = new com.lyh.proto.entity.ModelOutter.Entry(this);
                result.id_ = id_;
                if (metaBuilder_ == null) {
                    result.meta_ = meta_;
                } else {
                    result.meta_ = metaBuilder_.build();
                }
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return (Builder) super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return (Builder) super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return (Builder) super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return (Builder) super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
                                            java.lang.Object value) {
                return (Builder) super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            java.lang.Object value) {
                return (Builder) super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.lyh.proto.entity.ModelOutter.Entry) {
                    return mergeFrom((com.lyh.proto.entity.ModelOutter.Entry) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.lyh.proto.entity.ModelOutter.Entry other) {
                if (other == com.lyh.proto.entity.ModelOutter.Entry.getDefaultInstance())
                    return this;
                if (other.getId() != 0L) {
                    setId(other.getId());
                }
                if (other.hasMeta()) {
                    mergeMeta(other.getMeta());
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @java.lang.Override
            public final boolean isInitialized() {
                return true;
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                 throws java.io.IOException {
                com.lyh.proto.entity.ModelOutter.Entry parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (com.lyh.proto.entity.ModelOutter.Entry) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private long id_;

            /**
             * <code>int64 id = 1;</code>
             */
            public long getId() {
                return id_;
            }

            /**
             * <code>int64 id = 1;</code>
             */
            public Builder setId(long value) {

                id_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>int64 id = 1;</code>
             */
            public Builder clearId() {

                id_ = 0L;
                onChanged();
                return this;
            }

            private com.lyh.proto.entity.ModelOutter.Meta                                                                                                                                          meta_ = null;
            private com.google.protobuf.SingleFieldBuilderV3<com.lyh.proto.entity.ModelOutter.Meta, com.lyh.proto.entity.ModelOutter.Meta.Builder, com.lyh.proto.entity.ModelOutter.MetaOrBuilder> metaBuilder_;

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public boolean hasMeta() {
                return metaBuilder_ != null || meta_ != null;
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public com.lyh.proto.entity.ModelOutter.Meta getMeta() {
                if (metaBuilder_ == null) {
                    return meta_ == null ? com.lyh.proto.entity.ModelOutter.Meta.getDefaultInstance() : meta_;
                } else {
                    return metaBuilder_.getMessage();
                }
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public Builder setMeta(com.lyh.proto.entity.ModelOutter.Meta value) {
                if (metaBuilder_ == null) {
                    if (value == null) {
                        throw new NullPointerException();
                    }
                    meta_ = value;
                    onChanged();
                } else {
                    metaBuilder_.setMessage(value);
                }

                return this;
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public Builder setMeta(com.lyh.proto.entity.ModelOutter.Meta.Builder builderForValue) {
                if (metaBuilder_ == null) {
                    meta_ = builderForValue.build();
                    onChanged();
                } else {
                    metaBuilder_.setMessage(builderForValue.build());
                }

                return this;
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public Builder mergeMeta(com.lyh.proto.entity.ModelOutter.Meta value) {
                if (metaBuilder_ == null) {
                    if (meta_ != null) {
                        meta_ = com.lyh.proto.entity.ModelOutter.Meta.newBuilder(meta_).mergeFrom(value).buildPartial();
                    } else {
                        meta_ = value;
                    }
                    onChanged();
                } else {
                    metaBuilder_.mergeFrom(value);
                }

                return this;
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public Builder clearMeta() {
                if (metaBuilder_ == null) {
                    meta_ = null;
                    onChanged();
                } else {
                    meta_ = null;
                    metaBuilder_ = null;
                }

                return this;
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public com.lyh.proto.entity.ModelOutter.Meta.Builder getMetaBuilder() {

                onChanged();
                return getMetaFieldBuilder().getBuilder();
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            public com.lyh.proto.entity.ModelOutter.MetaOrBuilder getMetaOrBuilder() {
                if (metaBuilder_ != null) {
                    return metaBuilder_.getMessageOrBuilder();
                } else {
                    return meta_ == null ? com.lyh.proto.entity.ModelOutter.Meta.getDefaultInstance() : meta_;
                }
            }

            /**
             * <code>.model.Meta meta = 3;</code>
             */
            private com.google.protobuf.SingleFieldBuilderV3<com.lyh.proto.entity.ModelOutter.Meta, com.lyh.proto.entity.ModelOutter.Meta.Builder, com.lyh.proto.entity.ModelOutter.MetaOrBuilder> getMetaFieldBuilder() {
                if (metaBuilder_ == null) {
                    metaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<com.lyh.proto.entity.ModelOutter.Meta, com.lyh.proto.entity.ModelOutter.Meta.Builder, com.lyh.proto.entity.ModelOutter.MetaOrBuilder>(
                        getMeta(), getParentForChildren(), isClean());
                    meta_ = null;
                }
                return metaBuilder_;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFieldsProto3(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }

            // @@protoc_insertion_point(builder_scope:model.Entry)
        }

        // @@protoc_insertion_point(class_scope:model.Entry)
        private static final com.lyh.proto.entity.ModelOutter.Entry DEFAULT_INSTANCE;
        static {
            DEFAULT_INSTANCE = new com.lyh.proto.entity.ModelOutter.Entry();
        }

        public static com.lyh.proto.entity.ModelOutter.Entry getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<Entry> PARSER = new com.google.protobuf.AbstractParser<Entry>() {
                                                                          @java.lang.Override
                                                                          public Entry parsePartialFrom(com.google.protobuf.CodedInputStream input,
                                                                                                        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                                                    throws com.google.protobuf.InvalidProtocolBufferException {
                                                                              return new Entry(input, extensionRegistry);
                                                                          }
                                                                      };

        public static com.google.protobuf.Parser<Entry> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<Entry> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public com.lyh.proto.entity.ModelOutter.Entry getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }

    }

    public interface MetaOrBuilder extends
    // @@protoc_insertion_point(interface_extends:model.Meta)
                                  com.google.protobuf.MessageOrBuilder {

        /**
         * <code>int32 id = 1;</code>
         */
        int getId();

        /**
         * <code>string name = 2;</code>
         */
        java.lang.String getName();

        /**
         * <code>string name = 2;</code>
         */
        com.google.protobuf.ByteString getNameBytes();

        /**
         * <code>.model.EntryType type = 3;</code>
         */
        int getTypeValue();

        /**
         * <code>.model.EntryType type = 3;</code>
         */
        com.lyh.proto.entity.Enums.EntryType getType();
    }

    /**
     * Protobuf type {@code model.Meta}
     */
    public static final class Meta extends com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:model.Meta)
                                                                                 MetaOrBuilder {
        private static final long serialVersionUID = 0L;

        // Use Meta.newBuilder() to construct.
        private Meta(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
            super(builder);
        }

        private Meta() {
            id_ = 0;
            name_ = "";
            type_ = 0;
        }

        @java.lang.Override
        public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
            return this.unknownFields;
        }

        private Meta(com.google.protobuf.CodedInputStream input,
                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                 throws com.google.protobuf.InvalidProtocolBufferException {
            this();
            if (extensionRegistry == null) {
                throw new java.lang.NullPointerException();
            }
            int mutable_bitField0_ = 0;
            com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet
                .newBuilder();
            try {
                boolean done = false;
                while (!done) {
                    int tag = input.readTag();
                    switch (tag) {
                        case 0:
                            done = true;
                            break;
                        case 8: {

                            id_ = input.readInt32();
                            break;
                        }
                        case 18: {
                            java.lang.String s = input.readStringRequireUtf8();

                            name_ = s;
                            break;
                        }
                        case 24: {
                            int rawValue = input.readEnum();

                            type_ = rawValue;
                            break;
                        }
                        default: {
                            if (!parseUnknownFieldProto3(input, unknownFields, extensionRegistry, tag)) {
                                done = true;
                            }
                            break;
                        }
                    }
                }
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                throw e.setUnfinishedMessage(this);
            } catch (java.io.IOException e) {
                throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
            } finally {
                this.unknownFields = unknownFields.build();
                makeExtensionsImmutable();
            }
        }

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
            return com.lyh.proto.entity.ModelOutter.internal_static_model_Meta_descriptor;
        }

        @java.lang.Override
        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
            return com.lyh.proto.entity.ModelOutter.internal_static_model_Meta_fieldAccessorTable
                .ensureFieldAccessorsInitialized(com.lyh.proto.entity.ModelOutter.Meta.class,
                    com.lyh.proto.entity.ModelOutter.Meta.Builder.class);
        }

        public static final int ID_FIELD_NUMBER = 1;
        private int             id_;

        /**
         * <code>int32 id = 1;</code>
         */
        public int getId() {
            return id_;
        }

        public static final int           NAME_FIELD_NUMBER = 2;
        private volatile java.lang.Object name_;

        /**
         * <code>string name = 2;</code>
         */
        public java.lang.String getName() {
            java.lang.Object ref = name_;
            if (ref instanceof java.lang.String) {
                return (java.lang.String) ref;
            } else {
                com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
                java.lang.String s = bs.toStringUtf8();
                name_ = s;
                return s;
            }
        }

        /**
         * <code>string name = 2;</code>
         */
        public com.google.protobuf.ByteString getNameBytes() {
            java.lang.Object ref = name_;
            if (ref instanceof java.lang.String) {
                com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
                name_ = b;
                return b;
            } else {
                return (com.google.protobuf.ByteString) ref;
            }
        }

        public static final int TYPE_FIELD_NUMBER = 3;
        private int             type_;

        /**
         * <code>.model.EntryType type = 3;</code>
         */
        public int getTypeValue() {
            return type_;
        }

        /**
         * <code>.model.EntryType type = 3;</code>
         */
        public com.lyh.proto.entity.Enums.EntryType getType() {
            @SuppressWarnings("deprecation")
            com.lyh.proto.entity.Enums.EntryType result = com.lyh.proto.entity.Enums.EntryType.valueOf(type_);
            return result == null ? com.lyh.proto.entity.Enums.EntryType.UNRECOGNIZED : result;
        }

        private byte memoizedIsInitialized = -1;

        @java.lang.Override
        public final boolean isInitialized() {
            byte isInitialized = memoizedIsInitialized;
            if (isInitialized == 1)
                return true;
            if (isInitialized == 0)
                return false;

            memoizedIsInitialized = 1;
            return true;
        }

        @java.lang.Override
        public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
            if (id_ != 0) {
                output.writeInt32(1, id_);
            }
            if (!getNameBytes().isEmpty()) {
                com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_);
            }
            if (type_ != com.lyh.proto.entity.Enums.EntryType.UNKNOWN.getNumber()) {
                output.writeEnum(3, type_);
            }
            unknownFields.writeTo(output);
        }

        @java.lang.Override
        public int getSerializedSize() {
            int size = memoizedSize;
            if (size != -1)
                return size;

            size = 0;
            if (id_ != 0) {
                size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, id_);
            }
            if (!getNameBytes().isEmpty()) {
                size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_);
            }
            if (type_ != com.lyh.proto.entity.Enums.EntryType.UNKNOWN.getNumber()) {
                size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, type_);
            }
            size += unknownFields.getSerializedSize();
            memoizedSize = size;
            return size;
        }

        @java.lang.Override
        public boolean equals(final java.lang.Object obj) {
            if (obj == this) {
                return true;
            }
            if (!(obj instanceof com.lyh.proto.entity.ModelOutter.Meta)) {
                return super.equals(obj);
            }
            com.lyh.proto.entity.ModelOutter.Meta other = (com.lyh.proto.entity.ModelOutter.Meta) obj;

            boolean result = true;
            result = result && (getId() == other.getId());
            result = result && getName().equals(other.getName());
            result = result && type_ == other.type_;
            result = result && unknownFields.equals(other.unknownFields);
            return result;
        }

        @java.lang.Override
        public int hashCode() {
            if (memoizedHashCode != 0) {
                return memoizedHashCode;
            }
            int hash = 41;
            hash = (19 * hash) + getDescriptor().hashCode();
            hash = (37 * hash) + ID_FIELD_NUMBER;
            hash = (53 * hash) + getId();
            hash = (37 * hash) + NAME_FIELD_NUMBER;
            hash = (53 * hash) + getName().hashCode();
            hash = (37 * hash) + TYPE_FIELD_NUMBER;
            hash = (53 * hash) + type_;
            hash = (29 * hash) + unknownFields.hashCode();
            memoizedHashCode = hash;
            return hash;
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(java.nio.ByteBuffer data)
                                                                                               throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(java.nio.ByteBuffer data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(com.google.protobuf.ByteString data)
                                                                                                          throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(com.google.protobuf.ByteString data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(byte[] data)
                                                                                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(byte[] data,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                  throws com.google.protobuf.InvalidProtocolBufferException {
            return PARSER.parseFrom(data, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(java.io.InputStream input)
                                                                                                throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(java.io.InputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseDelimitedFrom(java.io.InputStream input)
                                                                                                         throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseDelimitedFrom(java.io.InputStream input,
                                                                               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                           throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input,
                extensionRegistry);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(com.google.protobuf.CodedInputStream input)
                                                                                                                 throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
        }

        public static com.lyh.proto.entity.ModelOutter.Meta parseFrom(com.google.protobuf.CodedInputStream input,
                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                  throws java.io.IOException {
            return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input, extensionRegistry);
        }

        @java.lang.Override
        public Builder newBuilderForType() {
            return newBuilder();
        }

        public static Builder newBuilder() {
            return DEFAULT_INSTANCE.toBuilder();
        }

        public static Builder newBuilder(com.lyh.proto.entity.ModelOutter.Meta prototype) {
            return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
        }

        @java.lang.Override
        public Builder toBuilder() {
            return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
        }

        @java.lang.Override
        protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
            Builder builder = new Builder(parent);
            return builder;
        }

        /**
         * Protobuf type {@code model.Meta}
         */
        public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
                                                                                                         implements
                                                                                                         // @@protoc_insertion_point(builder_implements:model.Meta)
                                                                                                         com.lyh.proto.entity.ModelOutter.MetaOrBuilder {
            public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
                return com.lyh.proto.entity.ModelOutter.internal_static_model_Meta_descriptor;
            }

            @java.lang.Override
            protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() {
                return com.lyh.proto.entity.ModelOutter.internal_static_model_Meta_fieldAccessorTable
                    .ensureFieldAccessorsInitialized(com.lyh.proto.entity.ModelOutter.Meta.class,
                        com.lyh.proto.entity.ModelOutter.Meta.Builder.class);
            }

            // Construct using com.lyh.proto.entity.ModelOutter.Meta.newBuilder()
            private Builder() {
                maybeForceBuilderInitialization();
            }

            private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
                super(parent);
                maybeForceBuilderInitialization();
            }

            private void maybeForceBuilderInitialization() {
                if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
                }
            }

            @java.lang.Override
            public Builder clear() {
                super.clear();
                id_ = 0;

                name_ = "";

                type_ = 0;

                return this;
            }

            @java.lang.Override
            public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
                return com.lyh.proto.entity.ModelOutter.internal_static_model_Meta_descriptor;
            }

            @java.lang.Override
            public com.lyh.proto.entity.ModelOutter.Meta getDefaultInstanceForType() {
                return com.lyh.proto.entity.ModelOutter.Meta.getDefaultInstance();
            }

            @java.lang.Override
            public com.lyh.proto.entity.ModelOutter.Meta build() {
                com.lyh.proto.entity.ModelOutter.Meta result = buildPartial();
                if (!result.isInitialized()) {
                    throw newUninitializedMessageException(result);
                }
                return result;
            }

            @java.lang.Override
            public com.lyh.proto.entity.ModelOutter.Meta buildPartial() {
                com.lyh.proto.entity.ModelOutter.Meta result = new com.lyh.proto.entity.ModelOutter.Meta(this);
                result.id_ = id_;
                result.name_ = name_;
                result.type_ = type_;
                onBuilt();
                return result;
            }

            @java.lang.Override
            public Builder clone() {
                return (Builder) super.clone();
            }

            @java.lang.Override
            public Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
                return (Builder) super.setField(field, value);
            }

            @java.lang.Override
            public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
                return (Builder) super.clearField(field);
            }

            @java.lang.Override
            public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
                return (Builder) super.clearOneof(oneof);
            }

            @java.lang.Override
            public Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index,
                                            java.lang.Object value) {
                return (Builder) super.setRepeatedField(field, index, value);
            }

            @java.lang.Override
            public Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
                                            java.lang.Object value) {
                return (Builder) super.addRepeatedField(field, value);
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.Message other) {
                if (other instanceof com.lyh.proto.entity.ModelOutter.Meta) {
                    return mergeFrom((com.lyh.proto.entity.ModelOutter.Meta) other);
                } else {
                    super.mergeFrom(other);
                    return this;
                }
            }

            public Builder mergeFrom(com.lyh.proto.entity.ModelOutter.Meta other) {
                if (other == com.lyh.proto.entity.ModelOutter.Meta.getDefaultInstance())
                    return this;
                if (other.getId() != 0) {
                    setId(other.getId());
                }
                if (!other.getName().isEmpty()) {
                    name_ = other.name_;
                    onChanged();
                }
                if (other.type_ != 0) {
                    setTypeValue(other.getTypeValue());
                }
                this.mergeUnknownFields(other.unknownFields);
                onChanged();
                return this;
            }

            @java.lang.Override
            public final boolean isInitialized() {
                return true;
            }

            @java.lang.Override
            public Builder mergeFrom(com.google.protobuf.CodedInputStream input,
                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                 throws java.io.IOException {
                com.lyh.proto.entity.ModelOutter.Meta parsedMessage = null;
                try {
                    parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
                } catch (com.google.protobuf.InvalidProtocolBufferException e) {
                    parsedMessage = (com.lyh.proto.entity.ModelOutter.Meta) e.getUnfinishedMessage();
                    throw e.unwrapIOException();
                } finally {
                    if (parsedMessage != null) {
                        mergeFrom(parsedMessage);
                    }
                }
                return this;
            }

            private int id_;

            /**
             * <code>int32 id = 1;</code>
             */
            public int getId() {
                return id_;
            }

            /**
             * <code>int32 id = 1;</code>
             */
            public Builder setId(int value) {

                id_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>int32 id = 1;</code>
             */
            public Builder clearId() {

                id_ = 0;
                onChanged();
                return this;
            }

            private java.lang.Object name_ = "";

            /**
             * <code>string name = 2;</code>
             */
            public java.lang.String getName() {
                java.lang.Object ref = name_;
                if (!(ref instanceof java.lang.String)) {
                    com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
                    java.lang.String s = bs.toStringUtf8();
                    name_ = s;
                    return s;
                } else {
                    return (java.lang.String) ref;
                }
            }

            /**
             * <code>string name = 2;</code>
             */
            public com.google.protobuf.ByteString getNameBytes() {
                java.lang.Object ref = name_;
                if (ref instanceof String) {
                    com.google.protobuf.ByteString b = com.google.protobuf.ByteString
                        .copyFromUtf8((java.lang.String) ref);
                    name_ = b;
                    return b;
                } else {
                    return (com.google.protobuf.ByteString) ref;
                }
            }

            /**
             * <code>string name = 2;</code>
             */
            public Builder setName(java.lang.String value) {
                if (value == null) {
                    throw new NullPointerException();
                }

                name_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>string name = 2;</code>
             */
            public Builder clearName() {

                name_ = getDefaultInstance().getName();
                onChanged();
                return this;
            }

            /**
             * <code>string name = 2;</code>
             */
            public Builder setNameBytes(com.google.protobuf.ByteString value) {
                if (value == null) {
                    throw new NullPointerException();
                }
                checkByteStringIsUtf8(value);

                name_ = value;
                onChanged();
                return this;
            }

            private int type_ = 0;

            /**
             * <code>.model.EntryType type = 3;</code>
             */
            public int getTypeValue() {
                return type_;
            }

            /**
             * <code>.model.EntryType type = 3;</code>
             */
            public Builder setTypeValue(int value) {
                type_ = value;
                onChanged();
                return this;
            }

            /**
             * <code>.model.EntryType type = 3;</code>
             */
            public com.lyh.proto.entity.Enums.EntryType getType() {
                @SuppressWarnings("deprecation")
                com.lyh.proto.entity.Enums.EntryType result = com.lyh.proto.entity.Enums.EntryType.valueOf(type_);
                return result == null ? com.lyh.proto.entity.Enums.EntryType.UNRECOGNIZED : result;
            }

            /**
             * <code>.model.EntryType type = 3;</code>
             */
            public Builder setType(com.lyh.proto.entity.Enums.EntryType value) {
                if (value == null) {
                    throw new NullPointerException();
                }

                type_ = value.getNumber();
                onChanged();
                return this;
            }

            /**
             * <code>.model.EntryType type = 3;</code>
             */
            public Builder clearType() {

                type_ = 0;
                onChanged();
                return this;
            }

            @java.lang.Override
            public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.setUnknownFieldsProto3(unknownFields);
            }

            @java.lang.Override
            public final Builder mergeUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
                return super.mergeUnknownFields(unknownFields);
            }

            // @@protoc_insertion_point(builder_scope:model.Meta)
        }

        // @@protoc_insertion_point(class_scope:model.Meta)
        private static final com.lyh.proto.entity.ModelOutter.Meta DEFAULT_INSTANCE;
        static {
            DEFAULT_INSTANCE = new com.lyh.proto.entity.ModelOutter.Meta();
        }

        public static com.lyh.proto.entity.ModelOutter.Meta getDefaultInstance() {
            return DEFAULT_INSTANCE;
        }

        private static final com.google.protobuf.Parser<Meta> PARSER = new com.google.protobuf.AbstractParser<Meta>() {
                                                                         @java.lang.Override
                                                                         public Meta parsePartialFrom(com.google.protobuf.CodedInputStream input,
                                                                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                                                                                                                                  throws com.google.protobuf.InvalidProtocolBufferException {
                                                                             return new Meta(input, extensionRegistry);
                                                                         }
                                                                     };

        public static com.google.protobuf.Parser<Meta> parser() {
            return PARSER;
        }

        @java.lang.Override
        public com.google.protobuf.Parser<Meta> getParserForType() {
            return PARSER;
        }

        @java.lang.Override
        public com.lyh.proto.entity.ModelOutter.Meta getDefaultInstanceForType() {
            return DEFAULT_INSTANCE;
        }

    }

    private static final com.google.protobuf.Descriptors.Descriptor                internal_static_model_Entry_descriptor;
    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_model_Entry_fieldAccessorTable;
    private static final com.google.protobuf.Descriptors.Descriptor                internal_static_model_Meta_descriptor;
    private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_model_Meta_fieldAccessorTable;

    public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
        return descriptor;
    }

    private static com.google.protobuf.Descriptors.FileDescriptor descriptor;
    static {
        java.lang.String[] descriptorData = { "\n\013model.proto\022\005model\032\nenum.proto\".\n\005Entr"
                                              + "y\022\n\n\002id\030\001 \001(\003\022\031\n\004meta\030\003 \001(\0132\013.model.Meta"
                                              + "\"@\n\004Meta\022\n\n\002id\030\001 \001(\005\022\014\n\004name\030\002 \001(\t\022\036\n\004ty"
                                              + "pe\030\003 \001(\0162\020.model.EntryTypeB#\n\024com.lyh.pr"
                                              + "oto.entityB\013ModelOutterb\006proto3" };
        com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
            public com.google.protobuf.ExtensionRegistry assignDescriptors(com.google.protobuf.Descriptors.FileDescriptor root) {
                descriptor = root;
                return null;
            }
        };
        com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(descriptorData,
            new com.google.protobuf.Descriptors.FileDescriptor[] { com.lyh.proto.entity.Enums.getDescriptor(), },
            assigner);
        internal_static_model_Entry_descriptor = getDescriptor().getMessageTypes().get(0);
        internal_static_model_Entry_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_model_Entry_descriptor, new java.lang.String[] { "Id", "Meta", });
        internal_static_model_Meta_descriptor = getDescriptor().getMessageTypes().get(1);
        internal_static_model_Meta_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
            internal_static_model_Meta_descriptor, new java.lang.String[] { "Id", "Name", "Type", });
        com.lyh.proto.entity.Enums.getDescriptor();
    }

    // @@protoc_insertion_point(outer_class_scope)
}
